home *** CD-ROM | disk | FTP | other *** search
Java Source | 1995-12-31 | 417 b | 32 lines |
- //
- // Java Primer Plus
- // Paul Tyma
- //
- // Chapter 4
- //
- import java.lang.Math;
-
- public class MyStandAlone {
-
-
- public static void main (String args[]) throws java.io.IOException
- {
- float x,y;
- int t;
-
- t = 11;
-
- t = t / 4;
-
- x = (float)java.lang.Math.sin(4.5);;
- y = 10f;
-
- // x = ((int)x|3)/4*y+1.2;
-
- // t = ((int)x|3)/4*y+1;
- System.out.println(x);
- // x = ( ( 5 > 4) || (8.0/0 < 1 )) ? ((int)x|3)/4*y+1:0;
-
-
- }
- }